//
//  TimeCollectionViewCell.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/10/26.
//

import UIKit

class TimeCollectionViewCell: UICollectionViewCell {
    var titleLab: UILabel!
    var contentLab: UILabel!
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.titleLab = UILabel(frame: .zero)
        self.titleLab.textColor = Theme.redColor
        self.titleLab.font = UIFont(name: Theme.PingFangSCRegular, size: 12)
        self.titleLab.textAlignment = .center
        self.contentView.addSubview(self.titleLab)
        
        self.contentLab = UILabel(frame: .zero)
        self.contentLab.textColor = Theme.redColor
        self.contentLab.font = UIFont(name: Theme.PingFangSCRegular, size: 12)
        self.contentLab.textAlignment = .center
        self.contentView.addSubview(self.contentLab)
        self.contentLab.text = ":"
        
        self.titleLab.snp.makeConstraints { make in
            make.top.equalTo(0)
            make.left.equalTo(0)
            make.height.equalTo(20)
            make.bottom.equalTo(0)
        }
        
        self.contentLab.snp.makeConstraints { make in
            make.top.equalTo(0)
            make.left.equalTo(self.titleLab.snp.right).offset(5)
            make.height.equalTo(20)
            make.bottom.equalTo(0)
        }
    }
    
    
    
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
